<?php
namespace Admin\Controller;

use Common\Controller\AdminbaseController;

class ActionLogController extends AdminbaseController{
    public function index(){
  
    	$Action_log = M('action_log');

    	if(IS_POST){
    		$where['user_name'] = I('post.user_name');
    		$this->assign('user_name',$where['user_name']);
    	}
        
        $count      = $Action_log->where($where)->count();
        
        $page       = $this->page($count, 15);


        $action_log_list = $Action_log->where($where)->limit($page->firstRow, $page->listRows)->select();
       
        $this->assign('list',$action_log_list);
       
        $this->display();
    }
}